import React,{lazy} from 'react'
const Home=lazy(()=>import('../pages/home'))
const Text=lazy(()=>import('../pages/text'))
const User=lazy(()=>import('../pages/user'))
const Layout=lazy(()=>import('../pages/layout'))
export default [{
    path:'/',
    name:'layout',
    element:<Layout></Layout>,
    children:[{
        path:'/',
        name:'home',
        element:<Home></Home>
    },]
},{
    path:'/text:id',
    name:'text',
    element:<Text></Text>
},{
    path:'/user',
    name:'user',
    element:<User></User>
}]